import 'package:flutter/cupertino.dart';
import 'package:scoped_model/scoped_model.dart';

class IndexModel extends Model {
  static IndexModel of(BuildContext context) =>
      ScopedModel.of<IndexModel>(context);

  int _count = 0;

  int get count => _count;

  void setIndex(int index) {
    _count = index;
    notifyListeners();
  }

}
